package com.example.oversea_home_spring.serviceImpl;


import com.example.oversea_home_spring.bean.Warehouse;
import com.example.oversea_home_spring.mapper.AdminiMapper;
import com.example.oversea_home_spring.service.AdminiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminServiceImpl implements AdminiService {

    @Autowired
    AdminiMapper adminiMapper;

    @Override
    public List<Warehouse> selectAllHouse() {
        return adminiMapper.selectAllHouse();
    }

    @Override
    public Integer updateOneHouse(Warehouse warehouse) {
        return adminiMapper.updateOneHouse(warehouse);
    }
}
